package com.marco.utils;

import java.io.Serializable;

/**
 * point.java
 * Create on 2017/7/7
 * Copyright(c) JD Inc 2017. All Rights Reserved.
 * contact with xiaomingke1@jd.com
 * <pre>
 * Declaration：通用点 pojo
 * </pre>
 */
public class Point implements Serializable {

    private static final long serialVersionUID = 4518408843690024773L;
    private Double lng;
    private Double lat;


    public Point() {

    }

    public Point(Builder builder) {
        this.lng = builder.lng;
        this.lat = builder.lat;
    }

    public static class Builder {
        private Double lng;
        private Double lat;

        public Builder(Double lng, Double lat){
            this.lng =lng;
            this.lat= lat;
        }

        public Builder lng(Double lng) {
            this.lng = lng;
            return this;
        }

        public Builder lat(Double lat) {
            this.lat = lat;
            return this;
        }

        public Point Build() {
            return new Point(this);
        }
    }

    public Double getLng() {
        return lng;
    }

    public Double getLat() {
        return lat;
    }
}
